import React from 'react'
// ===================================================================== Temp
import FormModal from '#cpt/temp/FormModal'
// ===================================================================== component
class Index extends React.Component{
	state = {
		// 提交表单列表
		formData : [
			{ label: '原因',        		name: 'reason', 		full:true, 	type:'textarea', required:true },
		]
	}
	
	open = rows => {
		this.modal.open({ formRef: this.formRef })
		this.submit = {  params: rows.map(({ spec_num, kind_id }) => ({ spec_num, kind_id })), page_source: 'kf' } 
	}
	
	render(){
		return FormModal.call(this,{ title: '报告单删除原因', labelWidth:'s4', width:600, api:'kd-report-spec/recallReport'})
	}
}

export default Index